package sivan.listener;
import org.springframework.context.ApplicationEvent;
import sivan.domain.User;

/**
 * Created by sivan on 2019/2/27.
 */
public class TestEvent extends ApplicationEvent {

    private User user;

    public TestEvent(User source) {
        super(source);
        this.user = source;
    }

    public User getUser() {
        return user;
    }

    public TestEvent setUser(User user) {
        this.user = user;
        return this;
    }
}
